Repository navigation
fix(menus): the menu bar's menus open under the bar, at most three quarters of the window tall (2.8.3) - #37
Merged
Merged
Conversation
…hree quarters of the window tall A menu taller than the room under the bar was moved up until it fit, so File, View and the other long menus covered the menu bar on Linux, Windows and in the browser. A bar menu now always opens just under the bar, is at most three quarters of the window tall and never runs past its bottom edge, and scrolls what does not fit. Its submenus keep under the bar to the same cap. Context menus are placed as before.
…t three quarters of the window tall, and all three demos at this version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(menus): the menu bar's menus open under the bar, at most three quarters of the window tall (2.8.3)
Summary
MenuBar.openplaced its menus withPopupMenu.openAt, the context menus' placement, which puts a menu above its point when it does not fit below and then clamps it into the window. A long menu ended attop: 4px, over the bar.frontend/src/ui/menu.ts: a newPopupMenu.openUnderopens a bar menu with its top just under the bar and never moves it up. Before it is measured it gets amax-heightof three quarters of the window's height, and never more than the room left under the bar; the rest scrolls. Its submenus (openBeside) keep under the bar with the same cap. Context, layer, tab, guide and task bar menus still useopenAtand are placed as before.native-menu.ts) and is unchanged; with View > Menus in Window on macOS the in-window bar gets the fix too.Commits
Short hashes change when the commits are signed, so they are left out.
Version
v2.8.3 (release commit is last). Bumped:
frontend/package.json,frontend/package-lock.json(both fields),frontend/src/version.ts,backend/app/__init__.py,src-tauri/Cargo.toml,src-tauri/Cargo.lock,src-tauri/tauri.conf.json, the README badge,packaging/linux/ai.nodemode.formvis.metainfo.xml(a 2.8.3 release line), and aCHANGELOG.mdsection for 2.8.3.demo/assets/demo.js,demos/design/assets/design.jsanddemos/retouch/assets/retouch.jsare rebuilt withnpm run demoandnpm run demos.Checks
tsc --noEmitinfrontend: clean../formvis counts --check: README.md is accurate.file://at 1871 by 1080: File at top 38, 810 tall.npx vitest runinfrontend: 54 files, 299 tests passed.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.